#ifndef TCP_TASK_THREAD_H
#define TCP_TASK_THREAD_H

#include <QThread>
#include "TcpTask.h"

/**
 * @brief The TcpTaskThread class
 * 用于运行 TcpTask 的线程类
 */
class TcpTaskThread : public QThread
{
    Q_OBJECT
public:
    explicit TcpTaskThread(QObject *parent = nullptr);
    ~TcpTaskThread();

    TcpTask *getTcpTask() const;

protected:
    void run() override;

private:
    TcpTask *tcpTask;

    void onFree();
};

#endif // TCP_TASK_THREAD_H
